all:test connection create_table insert update select delete test2
 
test:test.cpp 
	g++ -std=c++11 -g -o  test test.cpp -L/usr/lib64/mysql -I/usr/include -lmysqlclient

connection:connection.cpp
	g++ -std=c++11 -g -o  connection connection.cpp -L/usr/lib64/mysql -I/usr/include -lmysqlclient

create_table:create_table.cpp
	g++ -std=c++11 -g -o  create_table create_table.cpp -L/usr/lib64/mysql -I/usr/include -lmysqlclient

insert:insert.cpp
	g++ -std=c++11 -g -o  insert insert.cpp -L/usr/lib64/mysql -I/usr/include -lmysqlclient

update:update.cpp
	g++ -std=c++11 -g -o  update update.cpp -L/usr/lib64/mysql -I/usr/include -lmysqlclient

select:select.cpp
	g++ -std=c++11 -g -o  select select.cpp -L/usr/lib64/mysql -I/usr/include -lmysqlclient

delete:delete.cpp
	g++ -std=c++11 -g -o  delete delete.cpp -L/usr/lib64/mysql -I/usr/include -lmysqlclient

test2:test2.cpp generate_random.cpp mysql_opt.cpp
	g++ -std=c++11 -g -o  test2 test2.cpp generate_random.cpp  mysql_opt.cpp -L/usr/lib64/mysql -I/usr/include -lmysqlclient